from celery import Celery
# app = Celery('tasks', broker='amqp://guest@localhost//')
# app = Celery('tasks', broker='redis://guest@localhost//')
app = Celery('tasks', broker='redis://localhost:6379/1', backend='redis://localhost:6379/2')


@app.task
def add(x, y):
    return x + y
